﻿#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.GamerServices;
using System.ComponentModel;
#endregion

namespace TunnelsOfDeath
{
    partial class Game1 : Game
    {
        protected void MainStateStartup(GameTime _gt)
        {
            if (Globals.CurrentMapName == "")
            {
                Globals.MyMapManager.LoadFirstMap();
            }
            else
            {
                if (!Globals.MyMapManager.LoadNextMap())
                {
                    Globals.CurrentState = GameState.alllevelspassed;
                    return;
                }
            }
            Globals.ActivePlayersOnMap.Clear();
            Globals.MyCameraManager.FindAssignPlayers();
            MainTimer = _gt.TotalGameTime.TotalMilliseconds + 2000;
            Globals.Gui.ShouldDrawMap = true;
            Globals.CurrentState = GameState.game;
        }
    }

}
